xl: introduce specific VCPU to PCPU mapping in config file
authorDario Faggioli <raistlin@linux.it>
Tue, 15 May 2012 14:41:52 +0000 (15:41 +0100)
committerDario Faggioli <raistlin@linux.it>
Tue, 15 May 2012 14:41:52 +0000 (15:41 +0100)
commita80644cd38a99addcebb6f31c9e2fd6a36aa5f48
tree4a950ff886829cef4e12d9f50a47154a3876131e
parentf67f17b13bcf1122f1e95aaf5891236b57fdc527
xl: introduce specific VCPU to PCPU mapping in config file

xm supports the following syntax (in the config file) for
specific VCPU to PCPU mapping:

cpus = "0-3,5,^1" # all vcpus run on cpus 0,2,3,5
cpus = ["2", "3"] # VCPU0 runs on CPU2, VCPU1 runs on CPU3

Allow for the same in xl.

This fixes what happened in changeset 54000bca7a6a, which
introduced suppot for the `cpus=` option within xl, but used
both the list (cpus=[2, 3]) and the string (cpus="2,3") syntax
for achieving the same behaviour (pin all guest's vcpus to the
pcpus in the list/string).

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
docs/man/xl.cfg.pod.5
tools/libxl/xl_cmdimpl.c